package com.naiterui.ehp.ps.sms.enums;

/**
 * @author guoyongxiang
 * @date 2019-08-16 17:09
 * @since 1.0.0
 */
public enum HuaweiStatusEnum {


    REPORT_SUCCESS("DELIVRD", "回执成功"),

    SMS_SUCCESS("000000", "成功"),
    SMS_SEND_BUSY("E200015", "待发送短信数量太大"),
    SMS_TEMPLAT_VAR_VERIFY_FAILED("E200028", "模板变量校验失败"),
    SMS_TEMPLAT_TYPE_VERIFY_FAILED("E200029", "模板类型校验失败"),
    SMS_TEMPLAT_NOT_ACTIVE("E200030", "模板未激活"),
    SMS_PROTOCOL_VERIFY_FAILED("E200031", "协议校验失败"),
    SMS_TEMPLAT_TYPE_ERROR("E200033", "模板类型不正确"),

    ;
    /**
     * 异常代码
     */
    private String code;

    /**
     * 异常消息
     */
    private String msg;

    /**
     * 构造函数
     *
     * @param code
     * @param msg
     */
    HuaweiStatusEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 获取异常信息
     * CloopenStatus.msg()<BR>
     * <P>Author :  </P>
     * <P>Date : 2017-7-28 </P>
     *
     * @return
     */
    public String msg() {
        return this.msg;
    }

    /**
     * 获取异常状态码
     * CloopenStatus.code()<BR>
     * <P>Author :  </P>
     * <P>Date : 2017-7-28 </P>
     *
     * @return
     */
    public String code() {
        return this.code;
    }
}
